import axios from "../axios";
const method = {
    //查询项目方人员实名制
    query: async function (params) {
        return await axios({
            method: "post",
            url: "/projectUser/proConditions",
            params: params
        });
    },
    //查询项目方人员真实姓名
    queryName: async function (params) {
        return await axios({
            method: "post",
            url: "/projectUser/proConditions",
            params: params
        });
    },
    //新增项目方人员实名制
    add: async function (params) {
        return await axios({
            method: "post",
            url: "/projectUser/addProjectUser",
            data: params
        });
    },
    //修改项目方人员实名制
    edit: async function (params) {
        return await axios({
            method: "post",
            url: "/projectUser/update",
            data: params
        });
    },
    //删除项目方人员实名制
    del: async function (id) {
        return await axios({
            method: "post",
            url: "/projectUser/deleteById?id=" + id,
        });
    },
    //获取职位
    obtainPosition: async function () {
        return await axios({
            method: "post",
            url: "/projectUser/getPosition"
        })
    }

};

const query = method.query;
const queryName = method.queryName;
const add = method.add;
const edit = method.edit;
const del = method.del;
const obtainPosition = method.obtainPosition;

export { query, queryName, add, edit, del, obtainPosition }
